export const PAGESIZE = 10

export const ACCOUNT_VAILD = {
  pattern: /^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){5,15}/, // 账号匹配
  msg: '由字母,数字或下划线组成,例: jack_123456'
}

export const PASSWORD_VAILD = {
  pattern: /^[\w_-]{6,16}$/, // 密码匹配
  msg: '密码由6-16位数字,字母或下划线组成'
}

export const EMAIL_VAILD = {
  pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/, // 邮箱匹配
  msg: '邮箱格式不正确'
}

export const MOBILE_VAILD = {
  pattern: /^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$/, // 手机号匹配
  msg: '手机号格式不正确'
}
